<template>
    <div id="goods_list">
        <goods-list-item v-for="(item,index) in goodsData" :message="item" :key="index"/>
    </div>
</template>

<script>
    import GoodsListItem from "./GoodsListItem";
    export default {
        name: "GoodsList",
        props:{
            goodsData:{
                type:Array,
                default(){
                    return []
                }
            }
        },
        components:{
            GoodsListItem
        }
    }
</script>

<style scoped>
    #goods_list{
        width: 100%;
    }
</style>